#include "ImageShow.h"
#include <QPainter>
#include <QPaintEngine>
#include "CvxWin32.h"
CSimpleImageWindow::CSimpleImageWindow(void):
	currentImage_(NULL)
{
}

CSimpleImageWindow::~CSimpleImageWindow(void)
{
}

void CSimpleImageWindow::paintEvent(QPaintEvent *event)
{
	
	if (NULL != currentImage_)
	{
		QRect qrc = this->geometry();
		QPainter painter(this);
		CvRect rc =cvRect(0,0,currentImage_->width,currentImage_->height);
		CvxWin32::DrawToHDC(currentImage_,painter.paintEngine()->getDC(),&rc);
	}

}
